<%@ page contentType="text/html;charset=UTF-8" %>

  <header class="main-header">
    <!-- Logo -->
    <a href="#" class="logo" style="position:relative;">
      <!-- mini logo for sidebar mini 50x50 pixels -->
      <span class="logo-mini"><b>${sysName}</b></span>
      <!-- logo for regular state and mobile devices -->
      <span class="logo-lg"> ${titleName}</span>
    </a>
    <!-- Header Navbar: style can be found in header.less -->
    <nav class="navbar navbar-static-top">
      <!-- Sidebar toggle button-->
      <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
        <span class="sr-only">Toggle navigation</span>
      </a>

      <div class="navbar-custom-menu">
      
      
            <!-- 品种加载区域start -->
        <form id="cateMenu-form">
       		<input type="hidden" name="pageName" value="sysModule-list">
			<input type="hidden" name="formName" value="searchForm">
			<input type="hidden" name="sysModule.w_delStatus" value="F">
			<input type="hidden" name="sysModule.w_fatherId" value="0">
			<input type="hidden" name="sysModule.w_sysName" value="${sysName}"/>
        </form>
        <ul class="nav navbar-nav hidden" id="cateMenu-body" >
        </ul>
       <!-- 品种加载区域end -->
      
      
        <ul class="nav navbar-nav">
          <li>
            <a href="${ctx}/sendPage/ssb/admin/index">
                <span title="返回主页"><i class="fa fa-home"></i></span>
            </a>
          </li>
          <!-- Tasks: style can be found in dropdown.less -->
          <li class="dropdown tasks-menu hidden">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <i class="fa fa-flag-o"></i>
              <span class="label label-danger countNotice">0</span>
            </a>
            <ul class="dropdown-menu">
              <li class="header">您有<span class="countNotice">0</span>条未读消息</li>
              <li class="footer">
                <a href="#">查看所有</a>
              </li>
            </ul>
          </li>
          <!-- User Account: style can be found in dropdown.less -->
          <li class="dropdown user user-menu">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
			  <img src="${ctx}/images/plateform/person2.png" class="user-image"/>
              <span class="hidden-xs">${loginUser.userCname}</span>
            </a>
            <ul class="dropdown-menu">
              <!-- User image -->
              <li class="user-header">
			    <img src="${ctx}/images/plateform/person2.png" class="img-circle"/>
                <p>
                 ${loginUser.userCname} - ${loginUser.userEname }
                  <small>${loginUser.email }</small>
                </p>
              </li>
              <!-- Menu Body -->
              <!-- Menu Footer-->
              <li class="user-footer">
                  <div class="pull-left">
                      <a href="${ctx}/sendPage/ssb/admin/sys/user-pass" class="btn btn-default btn-flat">密码修改</a>
                  </div>
                <div class="pull-right">
                  <a href="${ctx}/logout" class="btn btn-default btn-flat">退出</a>
                </div>
              </li>
            </ul>
          </li>
          <!-- Control Sidebar Toggle Button -->
        </ul>
      </div>
    </nav>
  </header>
  
 <script type="text/template" id="cateMenu-template">

	<? for ( var i = 0; i < rows.length; i++) {?>
		<?if((pageObj.currentPage>1) && i==0){?>
 			<li>
            	<a href="javascript:void(0);" onclick="catePageNo(<?=pageObj.currentPage-1?>);">
            	<span><i class="fa fa-chevron-left" ></i>&nbsp;</span>
            	</a>
        	 </li>
		<?}?>

  		 <li <?if(i==0){?>class="active"<?}?> <?if(rows[i].ifShow!='T'){?>style="display:none;"<?}?>>
            <a href="javascript:void(0);" onclick="loadLeftCateMenu('<?=rows[i].cateNo?>','${sysName}');">
             <span><i class="fa fa-stop-circle-o"></i> <?=rows[i].cateName?></span>
            </a>
         </li>

		<?if((pageObj.currentPage<cateTools.totalPage) && (i==rows.length-1)){?>
 			<li>
            	<a href="javascript:void(0);" onclick="catePageNo(<?=pageObj.currentPage+1?>);">
            	<span><i class="fa fa-chevron-right" ></i>&nbsp;</span>
            	</a>
        	 </li>
		<?}?>
	
	<?}?>
</script>  

